import copy from "./modules/copy";
import debounce from "./modules/debounce";
import drag from "./modules/drag";
import throttle from "./modules/throttle";
// 自定义指令
const directives = {
  copy,
  debounce,
  drag,
  throttle
};

// 这种写法可以批量注册指令
export default {
  install(app) {
    Object.keys(directives).forEach(key => {
      app.directive(key, directives[key]);
    });
  }
};
